package com.lanju.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="lj_message")
public class Message implements Serializable{
	
	private static final long serialVersionUID = -1600219019264329257L;
	
	private String M_Id;
	
	private String message;
	
	private Date createTime;
	
	private String creator;
	
	private String phone;
	
	private Integer type;
	
	private String createNmae;
	/**
	 * 0 ：隐藏
	 * 1： 显示
	 */
	private Integer status;

	   @Id
	    @Column(name="m_id",unique=true,nullable=false)
	public String getM_Id() {
		return M_Id;
	}

	public void setM_Id(String m_Id) {
		M_Id = m_Id;
	}
	@Column(name="message")
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	@Column(name="createTime")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name="creator",nullable=true)
	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}
	@Column(name="phone")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getType() {
		return type;
	}
	@Column(name="type")
	public void setType(Integer type) {
		this.type = type;
	}
	@Column(name="createNmae")
	public String getCreateNmae() {
		return createNmae;
	}

	public void setCreateNmae(String createNmae) {
		this.createNmae = createNmae;
	}
	@Column(name="status")
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
}
